import request from '@/utils/request';

export function addBargain(data) {
	return request({
		url: '/manage/api/cut/add',
		method: 'post',
		data,
	});
}

export function editBargain(data) {
	return request({
		url: '/manage/api/cut/edit',
		method: 'post',
		data,
	});
}

export function delBargain(data) {
	return request({
		url: '/manage/api/cut/remove',
		method: 'post',
		data,
	});
}

export function getBargainList(data) {
	return request({
		url: '/manage/api/cut/list',
		method: 'post',
		data,
	});
}

export function getBargainInfo(params) {
	return request({
		url: '/manage/api/cut/getDetail',
		method: 'get',
		params,
	});
}

export function getCutRecordInfo(params) {
	return request({
		url: '/manage/api/cut/cutDetails',
		method: 'get',
		params,
	});
}

export function getCutRecord(data) {
	return request({
		url: '/manage/api/cut/cutRecord',
		method: 'post',
		data,
	});
}

export function getFinanceList(params) {
	return request({
		url: '/pc/api/finance/list',
		method: 'get',
		params,
	});
}

export function getOrderdital(data) {
	return request({
		url: 'mall/order/getInfo',
		method: 'post',
		data,
	});
}

export function getFinanceExport(params) {
	return request({
		url: '/pc/api/finance/export',
		method: 'post',
		data: params,
	});
}
